home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12187 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: mayne.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c++,comp.lang.eiffel,comp.lang.c,comp.object,comp.software-eng
  4. Subject: Re: Portability of code & skills (Beware of "C" Hackers etc)
  5. Date: 18 Mar 1996 10:48:52 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4ikb6kINN1is@mayne.ugrad.cs.ubc.ca>
  8. References: <31494D29.4D4B@dmu.ac.uk> <DoG3HE.48E@assip.csasyd.oz>
  9. NNTP-Posting-Host: mayne.ugrad.cs.ubc.ca
  10.  
  11. In article <DoG3HE.48E@assip.csasyd.oz>,
  12. Don Harrison <donh@syd.csa.com.au> wrote:
  13.  >Graham Perkins writes:
  14.  >
  15.  >:Too much stuff on the endless looping of "Beware of "C" Hackers..."
  16.  >:thread so I'll try and split it.  Or should we "fray" a thread?
  17.  >
  18.  >Nice extension of the metaphor. 'Fraying' is a good description of the course of
  19.  >Usenet discussions :-).
  20.  >
  21.  >[...]
  22.  >
  23.  >...  So if you want your new language to be a success,
  24.  >:then give it away for ten years, preferably with a free O.S. and all source
  25.  >:code as well.  It's difficult to see many other reasons for widespread 
  26.  >:adoption of C and Unix.
  27.  >
  28.  >Aside from the historical argument, could another reason be that people
  29.  >love power and permissive languages such as C give such power? The trouble
  30.  >is, of course, that most people don't handle power responsibly because we
  31.  >are selfish by nature. Our short-sighted selfishness is manifested in 
  32.  >programming as hacking.
  33.  
  34. What does selfishness have to do with anything? It's just a matter of using
  35. undefined and implementation defined behavior. The problem is laziness to learn
  36. the language properly.
  37.  
  38. The C language is not as permissive as you may think: it just leaves it up to
  39. the implementations to give meaning to many operations, while it perfectly
  40. defines others.
  41.  
  42. Programmers who are not aware of these pitfalls end up hacking out code that
  43. is not portable.
  44.  
  45. Another thing is that C compilers don't provide enough run-time checking,
  46. because the standard doesn't require them to, but that's another issue
  47. altogether from permissiveness inherent to the language.
  48. -- 
  49.  
  50.